import game_object

class bullet_object(game_object.game_object):
	"""A game object is one that is in the physical game, has to move, and generate collision events when they occur."""
	def __init__(self,actions,senses,object_type,object_num,max_velocity,max_heading_diff,radius,graphics_draw,graphics_die,pos,heading,im_file,team,creator):
		game_object.game_object.__init__(self,actions,senses,object_type,object_num,max_velocity,max_heading_diff,radius,graphics_draw,graphics_die,pos,heading,im_file)
		self.team=team
		self.creator=creator
		
	def think(self):
		"""Called to allow the agent to sense/think/act"""
		self.actions['move_rel_object'](self.object_num,[0,float(1e10000)])
		return
	def draw(self):
		"""Draws the object using the provided callback function.  This can use member variables to control different frames of animation to be drawn.  The draw function must be able to setup the initial representation aswell as update it."""
		self.graphics_draw(self.object_num,self.pos,self.heading,self.graphics_state,self.im_file)
	def die(self):
		"""Remove the graphical representation of the object"""
		self.graphics_die(self.object_num)
